<!--
/* 
 * joblist - A Jobs Posting Application
 * $Id: displayJob.jsp,v 1.4 2007/01/25 00:55:48 biglee Exp $
 * 
 * ***** BEGIN LICENSE BLOCK *****
 * Version: MPL 1.1
 *
 * The contents of this file are subject to the Mozilla Public License Version
 * 1.1 (the "License"); you may not use this file except in compliance with
 * the License. You may obtain a copy of the License at
 * http://www.mozilla.org/MPL/
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 *
 * The Original Code is the JUGJobs project.
 *
 * The Initial Developers of the Original Code are the members of the Triangle
 * Java User's Group in the RTP area of North Carolina.
 * Portions created by the Initial Developer are Copyright (C) 2005
 * the Initial Developers. All Rights Reserved.
 *
 * Contributor(s):
 *
 * ***** END LICENSE BLOCK ***** 
 */
 -->
<%@ taglib uri="/tags/struts-bean" 				   prefix="bean" %>
<%@ taglib uri="/tags/struts-html" 				   prefix="html" %>
<%@ taglib uri="/tags/struts-logic" 			   prefix="logic" %>
<%@ page import="org.jugjobs.controller.Constants" %>

<html:html> 
  <h2>Full Job Information</H2>
   
  <%-- The action code creates a session bean for this job --%> 

  <jsp:useBean id='currentJobBean' scope="session" class='org.jugjobs.form.JobBean' />

    <TABLE>
      <TR><TD width='20%' valign='top' align='right' style='background-color:lightblue' ><bean:message key="jugjobs.jobFieldHeader.jobTitle"/></TD>          
          <TD width ='80%'>${currentJobBean.job_title}</TD></TR>
      <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.company"/></TD>
          <TD>${currentJobBean.employer_name}</TD></TR>
      
      <logic:notEmpty name='currentJobBean' property='employer_url'>
        <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.companyWebsite"/></TD>
            <TD> <a href="http://${currentJobBean.employer_url}" target='_blank'>${currentJobBean.employer_url}</a></TD></TR>
      </logic:notEmpty>
      
      <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.summary"/></TD>        
          <TD>${currentJobBean.job_desc}</TD></TR>
      
      <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.contact"/></TD>       
          <TD>${currentJobBean.contact_name}</TD></TR>

      <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.contactInfo"/></TD>       
          <TD>${currentJobBean.contact_info}</TD></TR>
      
      <TR><TD valign='top' align='right' style='background-color:lightblue'><bean:message key="jugjobs.jobFieldHeader.lastedit"/></TD>     
          <TD>${currentJobBean.last_edit_date}</TD></TR>
    </TABLE>

<BR>

<html:form action="joblist.do"  method="POST" >
	<html:cancel value="Return to job list" />
</html:form>

<%-- allow a user to enter a password for changing or deleting this posting. --%> 

<font color=red>
<html:errors/>	<%-- prints any login errors --%>
</font>
<BR><BR>

<html:form action="editJob.do"  method="POST" >
  <bean:message key="jugjobs.displayjob.authHeading"/><BR>
  <bean:message key="jugjobs.displayjob.passwordLabel"/>:
  <html:password property="posting_password" size="9" />
  
  <html:submit value="<%= Constants.USER_EDIT_BUTTON_VALUE%>" property="button" />
</html:form>

</html:html>

